package cn.humaohua.study.yanmo_design_pattern.ch02;

//简单工厂模式
public class Main {
    public static void main(String[] args) {
//		Api api = new Api_A_Impl();
//		api.test();

        Api api = ApiFactory.createApi();
        api.test();

        api = ApiFactory.createApi(2);
        api.test();
    }
}
